|
![](/i/fill.gif) |
"Thomas de Groot" <tDOTdegroot@interDOTnlANOTHERDOTnet> wrote:
>
> I suppose you could do this for instance:
>
> #declare P = texture {plain code};
> #declare F1 = texture {fleet1 code};
> #declare F2 = texture {fleet2 code};
>
> #declare Plain is on;
> #declare Fleet1 = on;
>
> I suppose you could do this for instance:
>
> #declare P = texture {plain code};
> #declare F1 = texture {fleet1 code};
> #declare F2 = texture {fleet2 code};
But what if there will be more fleets in the future??
#declare TextureList = array[3]
{
texture { /* plain code */ },
texture { /* fleet1 code */ },
texture { /* fleet2 code */ }
}
#declare FleetNumber = 1; // 0 would be plain, 1 would be fleet1, etc
Then, in the ships:
object{
Ship
texture{ TextureList[FleetNumber] }
}
Same idea, different implementation ;)
-Reactor
Post a reply to this message
|
![](/i/fill.gif) |